<include file="../header" />
<style>
    .hint-img{
        width: 24%;
        margin: 114px auto 12px;
    }
</style>
<div class="wrapper white-bg">
    <div class="header text-center font-16">
        申请
        <div class="iconfont icon-zuo go_back"></div>
    </div>
   <div class="hint-img">
       <img src="/assets/repaireast/images/apply.png" alt="">
   </div>
    <p class="text-center gray">审核中...</p>
    <input type="hidden" id="hasPosition" value="{BEESCRM:$hasPosition}">
</div>
<include file="../footer" />
<script style="text/javascript">
    setTimeout(function(){
        var hasPosition = $('#hasPosition').val();
        var role = '{BEESCRM:$role}';
        if(hasPosition == 1){
            window.location="{BEESCRM::U('/Repaireast/Repaireast/index',array('repair_id'=>$repairId))}";
        }
        if(hasPosition == 2){
            if(role == 'worker'){
                window.location="{BEESCRM::U('/Repaireast/Repaireast/worker')}";
            }else if(role == 'manager')
            {
                window.location="{BEESCRM::U('/Repaireast/Repaireast/manager')}";
            }
        }
    },2000);
</script>
